home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kompuutteri Kaikille K-CD 2008 #18
/
KCD200818.ISO
/
Euro Truck
/
ets_1_00_setup.exe
/
base.scs
/
effect
/
eut
/
untextured
/
arb2.vp
< prev
next >
Wrap
Text File
|
2008-07-25
|
3KB
|
101 lines
!!ARBvp1.0
# cgc version 2.0.0015, build date May 15 2008
# command line args: -quiet -fastprecision -I../../eurotrucks/eut_effect -I../../src/shaderlib/effect -profile arbvp1 -DPATH_ARB2
# source file: untextured/eut.untextured.cg
#vendor NVIDIA Corporation
#version 2.0.0.15
#profile arbvp1
#program vertex_main
#semantic vertex_main.transform
#semantic vertex_main.sun
#semantic vertex_main.truck
#semantic vertex_main.fog_density
#var float4 v.position : $vin.POSITION : POSITION : 0 : 1
#var float3 v.normal : $vin.NORMAL : NORMAL : 0 : 1
#var float4 v.color : $vin.COLOR0 : COLOR0 : 0 : 1
#var float4x4 transform.mvp_matrix : : c[1], 4 : 1 : 1
#var float4x4 transform.mv_matrix : : c[5], 4 : 1 : 1
#var float3 sun.es_direction : : c[9] : 2 : 1
#var float4 sun.ambient : : c[10] : 2 : 1
#var float4 sun.diffuse : : c[11] : 2 : 1
#var float4 sun.specular : : c[12] : 2 : 1
#var float3 truck.es_position : : c[13] : 3 : 1
#var float3 truck.es_direction : : c[14] : 3 : 1
#var float truck.spot_exponent : : c[15] : 3 : 1
#var float3 truck.attenuation : : c[16] : 3 : 1
#var float4 truck.diffuse : : c[17] : 3 : 1
#var float4 truck.specular : : c[18] : 3 : 1
#var float fog_density : : c[19] : 4 : 1
#var float4 vertex_main.position : $vout.POSITION : HPOS : -1 : 1
#var float4 vertex_main.diffuse : $vout.TEXCOORD0 : TEX0 : -1 : 1
#var float3 vertex_main.specular : $vout.TEXCOORD1 : TEX1 : -1 : 1
#var float vertex_main.fog : $vout.FOG : FOGC : -1 : 1
#const c[0] = 1.442695 0 1 2
PARAM c[20] = { { 1.442695, 0, 1, 2 },
program.local[1..19] };
TEMP R0;
TEMP R1;
TEMP R2;
TEMP R3;
DP4 R0.w, -vertex.position, c[7];
MOV R1.z, -R0.w;
DP4 R1.x, vertex.position, c[5];
DP4 R1.y, vertex.position, c[6];
DP3 R2.x, -R1, -R1;
ADD R0.xyz, -R1, c[13];
DP3 R1.w, R0, R0;
RSQ R1.w, R1.w;
RSQ R2.x, R2.x;
MUL R2.xyz, R2.x, -R1;
MUL R3.xyz, R1.w, R0;
ADD R0.xyz, R3, R2;
DP3 R1.x, R0, R0;
RSQ R1.x, R1.x;
MUL R0.xyz, R1.x, R0;
ADD R2.xyz, R2, -c[9];
DP3 R2.w, R2, R2;
RSQ R2.w, R2.w;
MUL R2.xyz, R2.w, R2;
DP3 R1.z, vertex.normal, c[7];
DP3 R1.y, vertex.normal, c[6];
DP3 R1.x, vertex.normal, c[5];
DP3 R2.y, R1, R2;
DP3 R0.y, R1, R0;
DP3 R0.x, R1, R3;
MOV R0.z, c[18].w;
LIT R0.yz, R0.xyzz;
DP3 R0.x, -R3, c[14];
MAX R0.x, R0, c[0].y;
POW R0.x, R0.x, c[15].x;
MUL R0.xy, R0.yzzw, R0.x;
RCP R0.z, R1.w;
DP3 R2.x, R1, -c[9];
MOV R2.z, c[12].w;
LIT R1.xyz, R2.xyzz;
MOV R2.y, R0.z;
MUL R2.z, R0, R0;
MOV R2.x, c[0].z;
DP3 R0.z, R2, c[16];
MUL R2.xyz, R1.y, c[11];
MAD R2.xyz, R1.x, c[10], R2;
RCP R0.z, R0.z;
MUL R1.xy, R0, R0.z;
MAD R0.xyz, R1.x, c[17], R2;
MUL R0.xyz, vertex.color, R0;
MUL R2.xyz, R1.y, c[18];
MUL result.texcoord[0].xyz, R0, c[0].w;
MUL R0.x, R0.w, c[19];
MUL R0.x, R0, R0;
MUL R0.x, R0, c[0];
EX2 R0.x, -R0.x;
MIN R0.x, R0, c[0].z;
MAD result.texcoord[1].xyz, R1.z, c[12], R2;
DP4 result.position.w, vertex.position, c[4];
DP4 result.position.z, vertex.position, c[3];
DP4 result.position.y, vertex.position, c[2];
DP4 result.position.x, vertex.position, c[1];
MOV result.texcoord[0].w, vertex.color;
MAX result.fogcoord.x, R0, c[0].y;
END
# 59 instructions, 4 R-regs